public class DC {
    public static int func(int a, int b, int c)
    {
        int result = 0;
        if(a > 1 && b == 2){
            result += 1;
        }
        if(a == 2 || c > 1){
            result += 2;
        }
        return result;
    }
}
